package com.jvyou.mybatis.demo.entity;

import com.jvyou.mybatis.executor.resultset.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/3 11:23
 * @Description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    private Long id;
    private String name;
    private Double price;
    @TableField("create_time")
    private Date createTime;
    @TableField(exclude = true)
    private Double total;

    public Order(Long id, String name, Double price, Date createTime) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.createTime = createTime;
    }
}
